package com.tianbing.adlottery.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;

/**
 * MultiActionController for the image list/upload UI.
 * 
 * @author Conan Chen
 * @since 2006.12.15
 */
public class SearchController extends MultiActionController {
	Logger logger = Logger.getLogger(SearchController.class.getName());

	private String searchGoogleView;

	private String searchBaiduView;

	public ModelAndView searchGoogle(HttpServletRequest request, HttpServletResponse response) throws Exception {

		ModelAndView mv = new ModelAndView(searchGoogleView);
		return mv;
	}

	public ModelAndView searchBaidu(HttpServletRequest request, HttpServletResponse response) throws Exception {

		ModelAndView mv = new ModelAndView(searchBaiduView);
		return mv;
	}

	public void setLogger(Logger logger) {
		this.logger = logger;
	}

	public void setSearchGoogleView(String searchGoogleView) {
		this.searchGoogleView = searchGoogleView;
	}

	public void setSearchBaiduView(String searchBaiduView) {
		this.searchBaiduView = searchBaiduView;
	}

}
